﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using AMS.DataAccess;

namespace AMS.Business
{

    public class AccountInfoBLL
    {
        private readonly AccountInfoDAL accountDal = new AccountInfoDAL();

        public DataTable GetAllAccountInfo()
        {
            return accountDal.GetAllAccountInfo();
        }

        public DataTable GetExpriedAccount()
        {
            return accountDal.GetExpriedAccount();
        }
        public void AccountAdd(AMS.Model.AccountInfo accountmodel)
        {
            accountDal.AccountAdd(accountmodel);
        }

        public int UpdateAccountStatus(string id, int status) 
        {
            return accountDal.UpdateAccountStatus(id,status);
        }
        public bool IsExist(string account)
        {
            return accountDal.IsExist(account);
        }
    }
}
